package com.asset.dispoal.abolishPool.service.converter;

import com.asset.dispoal.abolishPool.domain.db.entity.GbAbolishCaseContent;
import com.asset.dispoal.abolishPool.dto.AbolishPoolResponse;
import com.asset.dispoal.abolishPool.dto.QueryAbolishPoolRequest;
import com.asset.dispoal.abolishPool.dto.SaveAbolishPoolRequest;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @description:
 * @author: yf
 * @date: 2022-09-22 14:47:31
 */
@Mapper
public interface AbolishConverter {
    AbolishConverter INSTANCE = Mappers.getMapper(AbolishConverter.class);

    GbAbolishCaseContent reqToDo(SaveAbolishPoolRequest request);

    GbAbolishCaseContent pageReqToDo(QueryAbolishPoolRequest request);

    List<AbolishPoolResponse> doToRes(List<GbAbolishCaseContent> responses);
}
